{"ast":null,"code":"import ThemeCache from \"./ThemeCache\";\nimport Theme from \"./Theme\";\nvar cacheThemes = new ThemeCache();\n/**\n * Same as new Theme, but will always return same one if `derivative` not changed.\n */\n\nexport default function createTheme(derivatives) {\n  var derivativeArr = Array.isArray(derivatives) ? derivatives : [derivatives]; // Create new theme if not exist\n\n  if (!cacheThemes.has(derivativeArr)) {\n    cacheThemes.set(derivativeArr, new Theme(derivativeArr));\n  } // Get theme from cache and return\n\n  return cacheThemes.get(derivativeArr);\n}","map":{"version":3,"names":["ThemeCache","Theme","cacheThemes","createTheme","derivatives","derivativeArr","Array","isArray","has","set","get"],"sources":["/data/messenger.client/node_modules/@ant-design/cssinjs/es/theme/createTheme.js"],"sourcesContent":["import ThemeCache from \"./ThemeCache\";\nimport Theme from \"./Theme\";\nvar cacheThemes = new ThemeCache();\n/**\n * Same as new Theme, but will always return same one if `derivative` not changed.\n */\n\nexport default function createTheme(derivatives) {\n  var derivativeArr = Array.isArray(derivatives) ? derivatives : [derivatives]; // Create new theme if not exist\n\n  if (!cacheThemes.has(derivativeArr)) {\n    cacheThemes.set(derivativeArr, new Theme(derivativeArr));\n  } // Get theme from cache and return\n\n\n  return cacheThemes.get(derivativeArr);\n}"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AACrC,OAAOC,KAAK,MAAM,SAAS;AAC3B,IAAIC,WAAW,GAAG,IAAIF,UAAU,EAAE;AAClC;AACA;AACA;;AAEA,eAAe,SAASG,WAAW,CAACC,WAAW,EAAE;EAC/C,IAAIC,aAAa,GAAGC,KAAK,CAACC,OAAO,CAACH,WAAW,CAAC,GAAGA,WAAW,GAAG,CAACA,WAAW,CAAC,CAAC,CAAC;;EAE9E,IAAI,CAACF,WAAW,CAACM,GAAG,CAACH,aAAa,CAAC,EAAE;IACnCH,WAAW,CAACO,GAAG,CAACJ,aAAa,EAAE,IAAIJ,KAAK,CAACI,aAAa,CAAC,CAAC;EAC1D,CAAC,CAAC;;EAGF,OAAOH,WAAW,CAACQ,GAAG,CAACL,aAAa,CAAC;AACvC"},"metadata":{},"sourceType":"module"}